<?php
/**
 * @Copyright Copyright (C) 2010-2012
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 + Created by:          Webit Solution
 * Company:		Webit Solution
 + Contact:		www.webits.asia, developer@webits.asia
 * Created on:	May 21, 2012
 ^
 + Project: 		WRecruit
 * File Name:	views/candidates/tmpl/mycv.php
 ^ 
 * Description: template view my cv
 ^ 
 * History:		NONE
 ^ 
 */
 
 defined('_JEXEC') or die('Restricted access');
   global $mainframe;
  $document =& JFactory::getDocument();

  /*$document->addScript( 'components/com_wrecruit/js/jquery-1.7.2.min.js' );
  $document->addScript( 'components/com_wrecruit/js/jquery-ui.min.js' );
  $document->addScript( 'components/com_wrecruit/js/jquery.uniform.js' );
  $document->addScript( 'components/com_wrecruit/js/scripts.js' );*/
  $document->addScript( 'components/com_wrecruit/js/popup.js' );
  $document->addStyleSheet('components/com_wrecruit/css/popup.css');
  $document->addStyleSheet('components/com_wrecruit/css/chosen/chosen.css');
  $candidate = $this->getModel('wrecruit', 'WRecruitModel');
  $user	=& JFactory::getUser();
  if(isset($user->id) && $user->id == 0 || $user->id == ''){
	   $app =& JFactory::getApplication(); 
	   $app->enqueueMessage( JText::_( 'Please <a href="index.php?option=com_users&view=login">Login</a>' ), 'Login access' );
	  return;
  }else{
  	$candidateObj = $candidate->getAllCandidatesInfor($user->id);
	if( !$candidateObj ){
		$app =& JFactory::getApplication(); 
       //add a message to the message queue
        $app->enqueueMessage( JText::_( 'Please <a href="index.php?option=com_users&view=login">Login</a>' ), 'Login access' );

		return;
	}
	
  }
  $com_base = "components/com_wrecruit/";
  if(JRequest::getVar('newcv_popup_required')!=""){
    $scriptDec = "
	jQuery(function(){
		jQuery('#post-cv-leading-page').trigger(\"click\");	
	});
    
  ";
  $document->addScriptDeclaration ($scriptDec);
 }
  
?>


				<div class="content-left">
				<div class="box-list further-info-box">
						<div class="head-title">
						<h2>Content Payment Method</h2>
					</div>
					
					<div class="" id="c-payment-method">
                    	
                        <ol>
                            <li>
                                <p class="p-payment-first">You can pay us through <strong>ANZ bank account</strong> at any branch with the information below:</p>
                                <p><strong>Account No.:</strong> #####</p>
                                <p><strong>Account Name:</strong> Great alliances</p>
                                <p><strong>Bank Name:</strong> ANZ Royal</p>
                                <p><strong>Bank Address:</strong> Phnom Penh, Cambodia</p>
                                <p><strong>SWIFT Code:</strong> ANZBKHPP</p>
                                <p><a href="<?php echo JURI::base()."index.php?option=com_wrecruit&c=wrecruit&view=candidates&layout=confirmationafterupgrading&Itemid=".JRequest::getVar('Itemid');?>" style="text-decoration:underline;">Click here</a><span class="star1">*</span> for the example how you will make the payment at bank.</p>
                            </li>
                            	
                            <li>
                            	If you have Credit card and PayPal account, you can make a money transfer via PayPal to our email <a href="mailto:gaemil@ga.com" style="color:#3300CC; text-decoration:underline;">gaemail@ga.com</a>
                            </li>
                            <li>
                            	The payment can be made at our office<span class="star1">**</span> during working hour or a request to collect the payment by our staff at your location by calling to this number (+855)00 000000...
                            </li>
                            <li>
                            	<span class="star1">*</span> Click on this, the explanation text as the example for making payment at back will be displayed right
below. It works like a carousel with fade animation. <span style="color:#FE7613">GA will need to provide this content.</span>
								<p style="margin-top:10px;"><span class="star1">**</span> This link will go to contact us page.</p>
                            </li>
                        </ol>
                           
                       </div> 
                        
					</div>
                    
				</div>
                
				
				<!--<div class="box-banner-bottom">					
					<img src="<?php echo $com_base;?>images/banner-avertise-bottom.jpg" alt="" title="" width="745" height="122" />
				</div>-->
	  <!--popup content-->
        <div id="popupContainer" class="hidden" style="text-align:left;">
            <a id="close" class="hidden" title="close popup"></a>   
            <center>
            <form action="index.php" method="post">
            <table border="0">
            	<tr>
                	<td><input type="text" class="text" value="<?php echo $candidateObj->EMAIL;?>" name="mails" /></td>
                    <td></td>
                </tr>
                <tr>
                	<td colspan="2" align="right"> <input type="submit" value="Save" /></td>
                </tr>
            </table>
            </form>
            </center>
             
        </div>
        <div id="overlayEffect">
        </div>
       <!--end popup content--> 
